﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GLImp;

namespace CastleOfTheDisillusioned.Particles {
	class ImageParticle : Particle {
		Image Texture = null;

		public ImageParticle(Image Image, double X, double Y) {
			this.X = X;
			this.Y = Y;
			this.Width = Image.Width;
			this.Height = Image.Height;
			this.Texture = Image;
		}

		public ImageParticle(Image Image, double X, double Y, double Width, double Height) {
			this.X = X;
			this.Y = Y;
			this.Width = Width;
			this.Height = Height;
			this.Texture = Image;
		}

		public override void Draw() {
			Texture.Draw(X, Y, Width, Height);
		}
	}
}
